package com.lu;

/**
 * @author : lalala
 * @date : 2021/1/13 22:40
 **/
public class Singleton {
	public int A;
	public static void main(String[] args) {
		Singleton singleton = Singleton1.INSTANCE.singletonOperation();

	}
}
enum Singleton1{
	INSTANCE{
		@Override
		public Singleton singletonOperation() {
			System.out.println("....");
			return new Singleton();
		}
	};
	public abstract Singleton singletonOperation();
}